package top.raoqq.sky.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import top.raoqq.sky.entity.sql.Role;
import top.raoqq.sky.entity.sql.User;

import java.util.List;


/**
 * @author 饶奇奇
 * @date 2023/8/14
 */
public interface RoleMapper extends BaseMapper<Role> {


    List<User> listRoleGroupByUserId();

    void bindMenu(@Param("roleId") Long roleId, @Param("menuIdList") List<Long> menuIdList);

    void unBindMenu(@Param("roleId") Long roleId);

    List<Role> getRoleMenuDTOList();
}
